Apache关闭

您所在的位置:网站首页 apache 关闭ssl Apache关闭

Apache关闭

2023-02-26 10:55| 来源: 网络整理| 查看: 265

由于某些原因,我不知道Apache崩溃了。

这是崩溃时的apache日志:

[Sat Jun 02 02:38:05.196006 2018] [mpm_prefork:emerg] [pid 1122] (43)Identifier removed: AH00144: couldn't grab the accept mutex [Sat Jun 02 02:38:05.196006 2018] [mpm_prefork:emerg] [pid 1116] (43)Identifier removed: AH00144: couldn't grab the accept mutex [Sat Jun 02 02:38:05.198767 2018] [mpm_prefork:emerg] [pid 1115] (43)Identifier removed: AH00144: couldn't grab the accept mutex [Sat Jun 02 02:38:05.199523 2018] [mpm_prefork:emerg] [pid 3924] (43)Identifier removed: AH00144: couldn't grab the accept mutex [Sat Jun 02 02:38:05.204189 2018] [mpm_prefork:emerg] [pid 1937] (43)Identifier removed: AH00144: couldn't grab the accept mutex [Sat Jun 02 02:38:05.207362 2018] [mpm_prefork:emerg] [pid 1120] (43)Identifier removed: AH00144: couldn't grab the accept mutex [Sat Jun 02 02:38:06.057310 2018] [core:alert] [pid 1099] AH00050: Child 1115 returned a Fatal error... Apache is exiting! [Sat Jun 02 02:38:06.057483 2018] [:emerg] [pid 1099] AH02818: MPM run failed, exiting

我最近在服务器上所做的最后一件事是将certbot安装到我站点的常规HTTPS证书中。

1> 小智..:

我在使用Apache 2.4.27的Ubuntu 17.10上遇到了相同的错误。

这似乎与Apache与OS讨论文件锁定有关。当我进入/etc/apache2/apache2.conf并添加Mutex flock到Mutex部分(在ServerRoot部分附近)时,似乎已经解决了该问题。

不幸的是,我只能说这使用flock()函数(系统调用?)来处理文件锁定。根据https://httpd.apache.org/docs/2.4/mod/core.html#mutex

因此,这有点像个不可思议的修正,因为我个人对Apache的文件锁定行为还不够熟悉,无法说明它为什么起作用,而我只能说它起作用,因为Apache崩溃似乎已经停止了,但是到目前为止。但是,它可能会对您有所帮助,而且风险似乎较低。



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3